package application {
	import flash.display.Sprite;
	import flash.system.Capabilities;

	public class SystemInfo extends Sprite {
		
		public function SystemInfo() {
			//debug
			//var s = Capabilities;
			
			showSystemVersion();
			showPlayerType();
			showScreenResoluation();
		}
		
		private function showScreenResoluation():void {
			var x:Number = Capabilities.screenResolutionX;
			var y:Number = Capabilities.screenResolutionY;
			var dpi:Number = Capabilities.screenDPI;
			trace("Resolution X: " + x + " Resolution Y: " + y + " DPI: " + dpi);
		}
		
		/**
		 * play type: Plugin, ActiveX, StandAlone
		 */
		private function showPlayerType():void {
			var player:String = Capabilities.playerType;
			trace("Player type: " + player);
		}
		
		/** 
		 * show OS name and version
		 * OS name: Windows, Mac OS, Unix, Linux
		 * e.g. Mac 10.8.1
		 */
		private function showSystemVersion():void {
			var os:String = Capabilities.os;
			trace("OS Version: " + os);
		}
	}
}